package com.github.zzay.care.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.github.zzay.care.dto.EventDto;
import com.github.zzay.care.entity.Event;
import com.github.zzay.care.mapper.EventMapper;
import com.github.zzay.care.service.EventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zzay
 * @className EventServiceImpl
 * @description Implementation class for "EventService"
 * @create 2022/07/08 10:48
 */
@Service
public class EventServiceImpl extends ServiceImpl<EventMapper, Event> implements EventService {

    @Autowired
    private EventMapper eventMapper;

    /**
     * Get all information.
     *
     * @return A list of all information
     */
    public List<EventDto> getAll() {
        return eventMapper.selectAll();
    }

}
